import { Global, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from 'src/entities/User';
import { UserModelService } from './user-model.service';

@Global()
@Module({
  imports : [
    TypeOrmModule.forFeature([User])
  ],
  providers: [UserModelService],
  exports : [UserModelService]
})
export class UserModelModule {}
